Name :String insertion
Symbol :INSERT
Illustrate:
IN2 is inserted after the P character in IN1.
Image:
Parameter:
| Parameter | Statement | Type | Description |
|---|---|---|---|
| IN1 | Input | STRING | Enter the string IN1 |
| IN2 | Input | STRING | Enter the string IN2 |
| P | Input | USINT | Insertion location |
| OUT | Output | STRING | Output string |
Example:
LD:
ST:
Interpretation:
| parameter | operand | value |
|---|---|---|
| IN1 | TagIn1 | Enter a value:'ABC' |
| IN2 | TagIn2 | Enter a value:'XY' |
| P | Position | Start position:2 |
| OUT | TagOut | Output value:'ABXYC' |
IN1 and IN2 input string type data, P input the insertion position, and OUT output the inserted string.